package com.sharer.last.wrapper;

import com.sharer.last.base.support.BaseEntityWrapper;
import com.sharer.last.model.po.ExceptionLogPO;
import com.sharer.last.model.vo.log.ExceptionLogVO;
import com.sharer.last.utils.BeanUtil;
import org.springframework.stereotype.Component;

/**
 * 文件注释地方
 *
 * @ClassName ExceptionLogWrapper
 * @Author WangJin
 * @Date 2023/06/09/10:42
 * @Description
 * @Version 1.0
 */
@Component
public class ExceptionLogWrapper extends BaseEntityWrapper<ExceptionLogPO, ExceptionLogVO> {
    /**
     * 单个实体类包装
     *
     * @param entity
     * @return
     */
    @Override
    public ExceptionLogVO entityVO(ExceptionLogPO entity) {
        ExceptionLogVO vo = BeanUtil.copy(entity, ExceptionLogVO.class);
        return vo;
    }
}
